package com.xtpt.disaster.service.impl;

import com.xtpt.disaster.bean.TestTable;
import com.xtpt.disaster.mapper.TestTableMapper;
import com.xtpt.disaster.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestServiceImpl implements TestService {

    @Autowired
    TestTableMapper testTableMapper;

    @Override
    public List<TestTable> getAll() {
        List<TestTable> list = testTableMapper.selectAll();
        return list;
    }

    @Override
    public TestTable getById(Integer id) {
        TestTable testTable = testTableMapper.selectByPrimaryKey(id);
        return testTable;
    }
}
